import request from '@/utils/request'

// 查询租户钱包列表
export function listCustomerWallet(query) {
  return request({
    url: '/customer/v1/customer/wallet/page_v2',
    method: 'post',
    data: query
  })
}

// 刷新租户钱包余额
export function refreshBalance(id) {
  return request({
    url: '/customer/v1/customer/wallet/refresh_balance?id=' + id,
    method: 'post'
  })
}

// TRC20-USDT 资金归集
export function gather(data) {
  return request({
    url: '/customer/v1/customer/wallet/gather?google_code=' + data.google_code,
    method: 'post',
    data: data
  })
}

// TRC20-TRX 资金归集
export function gatherTrx(data) {
  return request({
    url: '/customer/v1/customer/wallet/gather_trx?google_code=' + data.google_code,
    method: 'post',
    data: data
  })
}

// 全部资金归集
export function gatherAll(data) {
  return request({
    url: '/customer/v1/customer/wallet/gather_all?google_code=' + data.google_code,
    method: 'post',
    data: data
  })
}

// 账户激活
export function active(data) {
  return request({
    url: '/customer/v1/customer/wallet/active?google_code=' + data.google_code,
    method: 'post',
    data: data
  })
}


// 刷新会员钱包充值
export function refreshDeposit(id) {
  return request({
    url: '/customer/v1/customer/wallet/refresh_deposit?id=' + id,
    method: 'post'
  })
}

// 刷新hash
export function hashRefreshDeposit(data) {
  return request({
    url: '/customer/v1/customer/wallet/hash/refresh_deposit',
    method: 'post',
    data: data
  })
}
